package top.lemna.code.generate;

import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 */
@Data
@NoArgsConstructor
public class ClassElement {

  private String className;

  private String classComment;

  private List<JavaField> fieldList;

  private List<JavaField> maxParamConsFieldList;

  public ClassElement(String className, String classComment, List<JavaField> fieldList,
      List<JavaField> maxParamConsFieldList) {
    super();
    this.className = className;
    this.classComment = classComment;
    this.fieldList = fieldList;
    this.maxParamConsFieldList = maxParamConsFieldList;
  }

  public String getClassComment() {
    if (classComment == null) {
      return "TODO  CodeGenerate 请填写类注释";
    }
    return classComment.replaceAll("<br>", "");
  }
}
